package org.common.treebuilder;

/**
 *
 * @author gus
 */
public interface TreeContainer<NodeType, T>
{
    public NodeType createTreeNode(T object, NodeType parent) throws Exception;

    public TreeNodeCollection<NodeType, T>  getSubCollection(NodeType parent);
    public boolean removeTreeNode(NodeType node) throws Exception;

    public void removeSubTreeFor(NodeType node) throws Exception;
    public void flush() throws Exception;
}


